<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Model;

class PersonalUser extends Model
{
    //设置表的类型和表名
    protected $table = 'personal_users';
    protected $primaryKey = 'uid';
    public $timestamps = false;
    protected $guarded = [];

    //用户和简历一对一关系
    public function user_resume()
    {
        return $this->hasMany('App\Models\Personal\Resume', 'uid', 'uid');
    }
}
